package com.wyg.blog.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wyg.blog.model.user.FriendSite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: WYG
 * @time: 2021/1/30 19:14
 */
@Mapper
public interface FriendSiteMapper {

    IPage<FriendSite> getAllFriendSite(Page<?> page);

    List<Map<String, String>> getFriendSiteInfo();

    boolean addSite(FriendSite friendSite);

    boolean deleteSite(Integer id);

    boolean updateSiteStatus(@Param("id") Integer id, @Param("isAdded") boolean isAdded);

    boolean updateSite(FriendSite friendSite);

    boolean getStatus(Integer id);

}
